Skip to content

Refactor Zend parameter parsing API #5609

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

Girgias
Copy link
Member

@Girgias Girgias commented May 20, 2020

This drops the unused num_arg from zend_parse_arg_impl and converts all the arg_num(s) to uint32_t as this how they are represented everywhere else.

Also change the character during classic ZPP format parsing from int to char as they might not have the same signess depending on platform.

A by-product is that it fixes some [-Wconversion] warnings which should also catch some generated by MSVC

@Girgias Girgias force-pushed the zpp-refactor-uint branch from eb2c622 to 5dc964c Compare May 22, 2020 15:05
}

if (num_args < min_num_args || (num_args > max_num_args && max_num_args >= 0)) {
if (num_args < min_num_args || (num_args > max_num_args)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (num_args < min_num_args || (num_args > max_num_args)) {
if (num_args < min_num_args || num_args > max_num_args) {

@php-pulls php-pulls closed this in cebe750 May 22, 2020
@Girgias Girgias deleted the zpp-refactor-uint branch May 22, 2020 15:14
@carusogabriel carusogabriel removed the request for review from weltling May 22, 2020 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants